<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<ui:composition template="/new-template/template.xhtml">
			<ui:define name="tituloPagina">
				<h:outputText value="ESQUECI MINHA SENHA ::SISTEMA RH"/>
			</ui:define>
	
			<ui:define name="tituloFieldSetFiltro">
				<h:outputText value="Esqueci minha senha" />
			</ui:define>
			
			<ui:define name="body">
			  
			   <p:spacer height="15" />
			  
			   <h:form id="formCadastro">
				  <h:panelGroup  id="pesquisa">		
					<fieldset>
						<legend> &nbsp; Recuperação de Senha &nbsp; </legend>
					    
					    <h:outputLabel value="Olá! Para redefinir a sua senha informe os dados abaixo (os mesmos cadastrados quando foi criado o seu usuário): "/>
					 	
						<h:panelGrid columns="2" border="0" cellspacing="4" cellpadding="2" columnClasses="colunaBusca">
							
							<h:outputLabel styleClass="negrito" value="Login: *"/>
							<h:inputText required="true" label="Login" 
										 value="#{usuarioBean.entity.login}"
										 maxlength="50" style="text-transform: lowercase;" 
										 size="30">
							</h:inputText>
							
							<h:outputLabel styleClass="negrito" value="E-mail: *"/>
							<h:inputText style="text-transform: lowercase;"
										 required="true"
										 label="E-mail" 
										 value="#{usuarioBean.entity.email}"
										 maxlength="50" 
										 size="30">
									<f:validateLength minimum="5" ></f:validateLength>
									<f:validator validatorId="emailValidator"/>
							</h:inputText>
							
							<h:outputLabel styleClass="negrito" value="CPF: *"/>
							<h:inputText   required="true"      label="CPF" 
										   value="#{usuarioBean.entity.cpf}"
										   maxlength="11" 
										   id="cpf"
										   converter="cpfConverter"
										   styleClass="cpf"
								           size="30" />
						</h:panelGrid>
						 
						 <div class="margemtop">
						 
						 		<p:commandButton styleClass="btIcon" 
											 	 value="Enviar"
											 	 image="saveIcon" 
											 	 actionListener="#{usuarioBean.recuperarSenha}" 
											 	 update="painelGlobal" />
						
								<p:commandButton styleClass="btIcon" 
											     value="Voltar"
											     image="backIcon" 
											     action="login?faces-redirect=true" 
											     immediate="true" 
											     update="painelGlobal" />
						 
						</div>
				</fieldset>
				</h:panelGroup>
			</h:form>
			</ui:define>
</ui:composition>
</html>
